/* pages/chat/chat.wxss */
.container {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #32A9F5 0%, #FFFFFF 100%)
}

// 新首页
.home{
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.search{
  width: 674rpx;
  height: 80rpx;
  margin: 20rpx auto 0;
  border-radius: 16rpx;
  background: #fff;
  overflow: hidden;
  position: relative;
  display: none;

  &.show{
    display: flex;
  }

  .search-value{
    height: 100%;
    padding: 0 80rpx 0 35rpx;
    font-size: 28rpx;
    flex: 1;
  }
  
  .icon{
    width: 100rpx;
    height: 100%;
    position:absolute;
    right: 0;
    top: 0;
    padding: 26rpx 35rpx 0 32rpx;
    box-sizing: border-box;
    image{
      width: 32rpx;
      height: 32rpx;
    }
  }
}

.entrance{
  width: 674rpx;
  margin: 15rpx auto 0;

  .cards{
    width: 1000rpx;
    display: flex;
  }

  .card {
    width: 321rpx;
    height: 220rpx;
    position: relative;
    margin: 0 28rpx 0 0;

    image{
      width: 100%;
      height: 100%;
    }

    .title{
      position: absolute;
      top: 188rpx;
      left: 24rpx;
      font-size: 28rpx;
    }

    .tip{
      position: absolute;
      top: 228rpx;
      left: 24rpx;
      font-size: 16rpx;
    }
  }
}

.bottom{
  height: 140rpx;
}

.tools {
  width: 674rpx;
  margin: 30rpx auto 0;
  box-sizing: border-box;
  flex: 1;
  overflow: hidden;
  background: #fff;
  border-radius: 16rpx;
  padding: 30rpx 0 30rpx 30rpx;
  
  .tool-tab{
    display: flex;
    border-bottom: 1px #CDCDCD solid;
    margin-right: 30rpx;
    .tab{
      font-size: 32rpx;
      margin-right: 30rpx;
      padding: 0 0 5rpx 0;
      color: #aaa;
      &.active{
        color: #32A9F5;
        border: 6rpx #32A9F5 solid;
        border-width: 0 0 6rpx 0;
        font-weight: 500;
      }
    }
  }

  scroll-view{
    height: calc(100% - 20rpx - 31.33rpx);
    overflow-y: auto;
  }

  .item{
    display: flex;
    justify-content: space-between;
    margin: 0 30rpx 25rpx 0;
    &:nth-child(1){
      margin-top: 30rpx;
    }
    &:nth-last-child(1){
      margin-bottom: 0;
    }
    .l{
      max-width: calc(100% - 108rpx - 28rpx);
      display: flex;
      gap: 18rpx;
      flex: 1;
      .avatar{
        width: 108rpx;
        height: 108rpx;
        border-radius: 24rpx;
        overflow: hidden;
        flex-shrink: 0;
      }
      .info{
        max-width: calc(100% - 108rpx - 20rpx);
        flex: 1;

        .title{
          color: #1A3B5F;
          font-size: 32rpx;
          font-weight: 500;
          white-space: nowrap;
          text-overflow:ellipsis;
          overflow:hidden;
          &.hot{
            color: #32A9F5;
          }
        }
        .author{
          font-size: 24rpx;
        }
        .hotnum{
          font-size: 20rpx;
          color: #808080;
        }
      }
    }
    .r{
      width: 108rpx;
      flex-shrink: 0;
      .button{
        width: 108rpx;
        height: 58rpx;
        background: #32A9F5;
        border-radius: 16rpx;
        font-size: 24rpx;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
  }
}

.space{
  height: 140rpx;
}